var o = require;
var t = module;
cc.Class({
    extends: cc.Component,
    properties: {label: cc.Label},
    start: function start() {
        this.logicPos = null;
    },
    getLogicPos: function getLogicPos(o, t, s, r, i) {
        var e = 0 - t * o.anchorX,
            n = s - s * o.anchorY,
            h = this.node.convertToWorldSpaceAR(cc.Vec2.ZERO),
            d = o.convertToNodeSpaceAR(h),
            u = d.x - e,
            c = n - d.y,
            a = Math.floor(u / r),
            l = Math.floor(c / i);
        return (this.logicPos = cc.v2(a, l)), this.logicPos;
    },
    setMaskColor: function setMaskColor(o) {
        var t = new cc.Color().fromHEX(o);
        this.node.color = t;
    }
});
